package com.amap.api.col.s;

import com.amap.api.col.s.dz;
import com.sangfor.kevinsawicki.http.HttpRequest;
import java.util.HashMap;
import java.util.Map;

/* compiled from: LogUpdateRequest.java */
/* loaded from: classes.dex */
public final class de extends cd {
    private byte[] a;
    private String b;

    @Override // com.amap.api.col.s.dz
    public final boolean b_() {
        return false;
    }

    @Override // com.amap.api.col.s.dz
    public final Map<String, String> f() {
        return null;
    }

    public de(byte[] bArr, String str) {
        this.b = "1";
        this.a = (byte[]) bArr.clone();
        this.b = str;
        a(dz.a.SINGLE);
        a(dz.c.HTTP);
    }

    @Override // com.amap.api.col.s.dz
    public final Map<String, String> g() {
        HashMap hashMap = new HashMap();
        hashMap.put("Content-Type", "application/zip");
        hashMap.put(HttpRequest.HEADER_CONTENT_LENGTH, String.valueOf(this.a.length));
        return hashMap;
    }

    @Override // com.amap.api.col.s.dz
    public final String b() {
        String c = ci.c(cr.b);
        byte[] a = ci.a(cr.a);
        byte[] bArr = new byte[a.length + 50];
        System.arraycopy(this.a, 0, bArr, 0, 50);
        System.arraycopy(a, 0, bArr, 50, a.length);
        return String.format(c, "1", this.b, "1", "open", ce.a(bArr));
    }

    @Override // com.amap.api.col.s.dz
    public final byte[] h() {
        return this.a;
    }
}
